<template>
  <div class="header_style">
    <div class="img_style">
      <slot name="imgLeft"></slot>
    </div>
    <div>
      <span class="text_style">{{title}}</span>
    </div>
    <div class="imgRight_style">
      <slot name="imgRight"></slot>
    </div>
  </div>
</template>

<script>
  export default {
    name: "MyHeader",
    props:{
      title:String
    }
  }
</script>

<style scoped>
  .header_style{
    background-color: #4accfb;
    margin: 0 auto;
    height: 50px;
    width: 100%;
    display: flex;
    align-items:center;
    justify-content:space-between;
    /*border-radius: 10px;*/
  }
  .img_style{
    width: 30px;
    height: 30px;
    margin-left: 10px;
  }
  .img_style img{
    width: 100%;
    height: 100%
  }
  .imgRight_style{
    width: 30px;
    height: 30px;
    margin-right: 10px;
  }
  .imgRight_style img{
    width: 100%;
    height: 100%
  }
  .text_style{
    color: #ffffff;
    font-family: Arial,Helvetica,sans-serif;
    font-size: 20px;
  }
</style>
